package internal

import (
	"reflect"
	handler2 "server/game/handler"
	"server/msg/jsonData"
)

func init() {
	// 向当前模块（game 模块）注册 Hello 消息的消息处理函数 handleHello
	handler(&jsonData.MsgCreatePlayerReq{}, handler2.CreatePlayerHandler)
	handler(&jsonData.MsgGetPlayerInfoReq{}, handler2.GetPlayerInfoHandler)
	handler(&jsonData.MsgCreateTaskInfoReq{}, handler2.JieShouTask)
	handler(&jsonData.MsgTaskListReq{}, handler2.GetTaskLis)
	handler(&jsonData.MsgUpdateTaskStateReq{}, handler2.WanChengRenWu)
	handler(&jsonData.MsgTranslateListReq{}, handler2.TranslateList)
	handler(&jsonData.MsgUpdateTranslateLevelReq{}, handler2.UpdateTranslateLevel)
	handler(&jsonData.MsgExpandTranslateReq{}, handler2.UpdateTranslateExpandLevel)
	handler(&jsonData.MsgCreateTranslateInfoReq{}, handler2.CreateTranslateInfo)
	handler(&jsonData.MsgAddItemReq{}, handler2.AddItem)
	handler(&jsonData.MsgUseItemReq{}, handler2.UserItem)
	handler(&jsonData.MsgBagListReq{}, handler2.BagList)
	handler(&jsonData.MsgTranslateProductReq{}, handler2.DoIt)
	handler(&jsonData.MsgCreateCardReq{}, handler2.CreateCard)
	handler(&jsonData.MsgUpdateCardLevelReq{}, handler2.UpdateCardLevel)
	handler(&jsonData.MsgUpdateCardStarReq{}, handler2.UpdateCardStar)
	handler(&jsonData.MsgUpdateCardSkillReq{}, handler2.UpdateCardSkillLevel)
	handler(&jsonData.MsgGetIncomeRankReq{}, handler2.GetIncomeRank)
	handler(&jsonData.MsgGetAbilityRankReq{}, handler2.GetAbilityRank)
	handler(&jsonData.MsgGetCharmRankReq{}, handler2.GetCharmRank)
	handler(&jsonData.MsgGetGuildRankReq{}, handler2.GetGuildRank)
	handler(&jsonData.MsgUnLockSystem{}, handler2.UnLock)
	handler(&jsonData.MsgSystemList{}, handler2.GetPlayerInfoByUidHandler)
	handler(&jsonData.MsgLevelInfo{}, handler2.GetPlayerLevelInfo)
	handler(&jsonData.MsgIncreaseLevelProgress{}, handler2.IncreaseLevelProgress)
	handler(&jsonData.MsgBossBattle{}, handler2.BossBattle)
	handler(&jsonData.MsgGetBreakfastReq{}, handler2.GetBreakfast)
	handler(&jsonData.MsgUnlockBreakfastToolsReq{}, handler2.UnlockBreakfastTools)
	handler(&jsonData.MsgUnlockBreakfastBreakfastReq{}, handler2.UnlockBreakfastBreakfast)
	handler(&jsonData.MsgUnlocksCareerReq{}, handler2.UnlocksCareer)
	handler(&jsonData.MsgCardListReq{}, handler2.CardList)
	handler(&jsonData.MsgUnlockCardToolReq{}, handler2.UnlockCardTool)
	handler(&jsonData.MsgPushCardToolReq{}, handler2.PushCardTool)
	handler(&jsonData.MsgProduceBreakfastReq{}, handler2.ProduceBreakfast)
	handler(&jsonData.MsgFinishBreakfastReq{}, handler2.FinishBreakfast)
	handler(&jsonData.MsgUpPlayerLevelReq{}, handler2.UpPlayerLevel)
	handler(&jsonData.MsgEnterArenaReq{}, handler2.EnterArena)
	handler(&jsonData.MsgBuyBuyAddedChallengeReq{}, handler2.BuyAddedChallenge)
	handler(&jsonData.MsgChallengeReq{}, handler2.Challenge)
	handler(&jsonData.MsgArenaShopReq{}, handler2.ArenaShop)
	handler(&jsonData.MsgBuyArenaShopReq{}, handler2.BuyArenaShop)
	handler(&jsonData.MsgArenaPaiHangReq{}, handler2.GetArenaInfo)
	handler(&jsonData.MsgDaoSaoReq{}, handler2.DaSao)
	handler(&jsonData.MsgArenaChallengeReq{}, handler2.Challenge)
	handler(&jsonData.MsgKaiYeReq{}, handler2.KaiYe)
	handler(&jsonData.MsgChanYeShouYiReq{}, handler2.ChaoYeShouYi)
	handler(&jsonData.MsgVehicleListReq{}, handler2.VehicleList)
	handler(&jsonData.MsgVehicleInfoReq{}, handler2.VehicleInfo)
	handler(&jsonData.MsgUpVehicleUpLevelReq{}, handler2.UpdateVehicleLevel)
	handler(&jsonData.MsgUnlockVehicleSkillReq{}, handler2.UnLockVehicleSkillInfo)
	handler(&jsonData.MsgVehicleRandNumReq{}, handler2.VehicleSkillRandNum)
	handler(&jsonData.MsgUpVehicleSkillLevelReq{}, handler2.UpVehicleSkillLevel)
	handler(&jsonData.MsgNewVehicleReq{}, handler2.NewVehicle)
	handler(&jsonData.MsgNewUnionReq{}, handler2.NewUnion)
	handler(&jsonData.MsgUpUnionLevelReq{}, handler2.UpUionLevel)
	handler(&jsonData.MsgUpUnionUserLevelReq{}, handler2.UpUserLevel)
	handler(&jsonData.MsgUnionInfoReq{}, handler2.UnionInfo)
	handler(&jsonData.MsgUnionListReq{}, handler2.UnionList)
	handler(&jsonData.MsgBaiFangReq{}, handler2.BaiFang)
	handler(&jsonData.MsgJoinUnionReq{}, handler2.JoinUnion)
	handler(&jsonData.MsgShouYiReq{}, handler2.ShouYi)
	handler(&jsonData.MsgNewArtistReq{}, handler2.NewArtistInfo)
	//handler(&jsonData.MsgUpArtistSkillLevelReq{}, handler2.UpA)
	handler(&jsonData.MsgArtistListReq{}, handler2.ArtistList)
	//handler(&jsonData.MsgArtistInfoReq{}, handler2.ShouYi)
	//handler(&jsonData.MsgUpArtistUpLevelReq{}, handler2.ShouYi)
	handler(&jsonData.MsgUnlockArtistSkillReq{}, handler2.UnLockArtistBeautySkill)
	handler(&jsonData.MsgArtistRandNumReq{}, handler2.RandNum)
	//handler(&jsonData.MsgDestroyCariReq{}, handler2.des)
	handler(&jsonData.MsgBuyReq{}, handler2.Buy)
	handler(&jsonData.MsgUnionBuildReq{}, handler2.UnionBuild)
	handler(&jsonData.MsgUnionBuildListReq{}, handler2.UnionBuildList)
	handler(&jsonData.MsgUnionShopInfoReq{}, handler2.UnionShopInfo)
	handler(&jsonData.MsgUnionShopBuyReq{}, handler2.UnionShopBuy)
	handler(&jsonData.MsgTranslateNpcRewardReq{}, handler2.TranslateNpcReward)
	handler(&jsonData.MsgActivityShopInfoReq{}, handler2.ActivityShopInfo)
	handler(&jsonData.MsgHouseListReq{}, handler2.HouseList)
	handler(&jsonData.MsgUnlockFurnitureReq{}, handler2.UnlockFurniture)
	handler(&jsonData.MsgUnLockHouseReq{}, handler2.UnLockHouse)
	handler(&jsonData.MsgAddFurnitureReq{}, handler2.AddFurniture)
	handler(&jsonData.MsgNewHouseReq{}, handler2.NewHouse)
	handler(&jsonData.MsgQianDaoReq{}, handler2.QianDao)
	handler(&jsonData.MsgActivityRewardReq{}, handler2.ActivityReward)
	handler(&jsonData.MsgGiveBeautyReq{}, handler2.ArtistGiveBeauty)
	handler(&jsonData.MsgPublicizeBeautyReq{}, handler2.ArtistPublicizeBeauty)
	handler(&jsonData.MsgLevelZhaoGongReq{}, handler2.LevelZhaoGong)
	handler(&jsonData.MsgPeiXunGongReq{}, handler2.LevelPeiXun)
	handler(&jsonData.MsgUpArtistBeautyLvReq{}, handler2.ArtistUpArtistBeautyLv)
	handler(&jsonData.MsgUpArtistBeautyYinXiaoIdReq{}, handler2.UpdateBeautyYinXiaoId)
}
func handler(m interface{}, h interface{}) {
	skeleton.RegisterChanRPC(reflect.TypeOf(m), h)
}
